<extend name="Public/base" />

<block name="body">
	<div class="main-title cf">
		<h2><if condition="ACTION_NAME eq 'addDepartment'">新增<else/>编辑</if>信息</h2>
	</div>
	<!-- 表单 -->
	<form id="form" action="{:U('editReportInfo')}" method="post" class="form-horizontal">
		<div class="form-item cf">
			<label class="item-label">姓名<span class="check-tips"></span></label>
			<div class="controls">
				<input type="text" class="text input-large" disabled name="name" value="{$data.name}">
			</div>
		</div>

		<div class="form-item cf">
			<label class="item-label">身份证号<span class="check-tips"></span></label>
			<div class="controls">
				<input type="text" class="text input-large" disabled name="ID_number" value="{$data.ID_number}">
			</div>
		</div>

		<div class="form-item cf">
			<label class="item-label">性别</label>
			<div class="controls">
				  <label class="radio"><input type="radio" name="sex" value="0">男</label>
                  <label class="radio"><input type="radio" name="sex" value="1">女</label>
			</div>
		</div>

		<div class="form-item cf">
			<label class="item-label">专业<span class="check-tips">（选择专业）</span></label>
			<div class="controls">
				<select name="major">
					<volist name="major" id="vo">
						<option value="{$vo.id}" <if condition="$data['major'] eq $vo['id']">selected</if> >{$vo.title}</option>
					</volist>
				</select>
			</div>
		</div>

		<div class="form-item cf">
			<label class="item-label">班级<span class="check-tips">（选择班级）</span></label>
			<div class="controls">
				<select name="class_id">
					<volist name="class" id="vo">
						<option value="{$vo.id}" <if condition="$data['class_id'] eq $vo['id']">selected</if> >{$vo.title}</option>
					</volist>
				</select>
			</div>
		</div>

		<div class="form-item cf">
			<label class="item-label">家庭住址</label>
			<div class="controls">
				<input type="text" class="text input-large" name="home_address" value="{$data.home_address}">
			</div>
		</div>
		<div class="form-item cf">
			<label class="item-label">毕业院校</label>
			<div class="controls">
				<input type="text" class="text input-large" name="school" value="{$data.school}">
			</div>
		</div>


		<div class="form-item">
			<input type="hidden" name="id" value="{$data.id}"/>
			<button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>

	</form>
</block>

<block name="script">
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
<script type="text/javascript" charset="utf-8">
	Think.setValue("sex", {$info.sex|default = 0});
	var type="{$type}";
    //导航高亮
    highlight_subnav('{:U("Volunteer/report")}');
</script>
</block>
